package com.senlingspace.payment.douyin.bean.request;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.senlingspace.payment.douyin.DouyinFunctionEnum;
import com.senlingspace.payment.douyin.bean.response.DouyinPoiMatchQueryResponse;
import lombok.Data;


/**
 * 抖音门店匹配关系
 *
 * @author
 * @date
 */
@Data
public class DouyinPoiMatchQueryRequest implements DouyinRequest<DouyinPoiMatchQueryResponse> {

    /**
     * 三方门店 id 列表，多个使用,分隔，单次请求 <= 200
     */
    @JsonProperty("ext_ids")
    private String extIds;

    public DouyinPoiMatchQueryRequest() {

    }

    // 构造函数
    public DouyinPoiMatchQueryRequest(String extIds) {
        this.extIds = extIds;
    }

    @Override
    public DouyinFunctionEnum getFunction() {
        return DouyinFunctionEnum.query_shop_relation;
    }

    @Override
    public String getBody() {
        return "ext_ids=" + this.extIds;
    }

    @Override
    public Class<DouyinPoiMatchQueryResponse> getResponseType() {
        return DouyinPoiMatchQueryResponse.class;
    }
}
